home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 …ember: Reference Library / Dev.CD Dec 00 RL Disk 1.toast / pc / technical documentation / develop / develop issue 26 / develop issue 26 code / truffles - display mgr. / sprocket / experimentalstuff / mailabledocumentwindow.cp < prev    next >
Encoding:
Text File  |  1995-10-27  |  1.2 KB  |  56 lines

  1. /*
  2.     File:        MailableDocumentWindow.cp
  3.  
  4.     Contains:    A wacky experiment with AOCE
  5.                 
  6.     Written by: Steve & Dave Falkenburg
  7.     
  8.     Copyright:    © 1993-94 by Dave Falkenburg, all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.     
  12.          <4>     9/27/94    DRF        Changes for Dave Mark: AppLib.h is now Sprocket.h.
  13.          <3>      9/9/94    DRF        Conditionalized AOCE support.
  14.          <2>     8/26/94    DRF        Added GetPerfectWindowSize, with call to
  15.                                     AdjustPerfectWindowSizeForMailer.
  16.  */
  17.  
  18. #include "Sprocket.h"
  19. #include "MailableDocumentWindow.h"
  20.  
  21.  
  22. #if    qAOCEAware
  23.  
  24.  
  25.  
  26. TMailableDocumentWindow::TMailableDocumentWindow()
  27.     {
  28.     this->CreateWindow();        //    must be a normal window
  29.     }
  30.  
  31.  
  32. WindowRef
  33. TMailableDocumentWindow::MakeNewWindow(WindowRef behindWindow)
  34.     {
  35.     WindowRef    aWindow = GetNewColorOrBlackAndWhiteWindow(1027,nil,behindWindow);
  36.  
  37.     return aWindow;
  38.     }
  39.  
  40.  
  41. void
  42. TMailableDocumentWindow::GetPerfectWindowSize(Rect * perfectSize)
  43.     {
  44.     TWindow::GetPerfectWindowSize(perfectSize);
  45.     AdjustPerfectWindowSizeForMailer(perfectSize);
  46.     }
  47.  
  48.  
  49. void
  50. TMailableDocumentWindow::DrawContents(void)
  51.     {
  52.     //    drawing will be clipped to the content so we can go ahead and use the portRect
  53.     FillRect(&fWindow->portRect,&qd.ltGray);
  54.     }
  55.  
  56. #endif